import pytest
from selenium import webdriver
from selenium.webdriver.common.by import By
import time


def LoginSuccess(wd,username='byhy',password='88888888'):
    wd.get('http://127.0.0.1/mgr/sign.html')
    wd.find_element(By.ID, value='username').send_keys(username)
    wd.find_element(By.ID, value='password').send_keys(password)
    wd.find_element(By.CSS_SELECTOR, value='button').click()
    time.sleep(1)